package d0304d0305;

import java.util.Scanner;

public class LOL {
    int yxlevel;
    int gjl=250;
    public static int exp;
    public static int hp;
    public static int level=1;
    public static  int gjcs;
    public static int gwlevel=1;

    public void YX(){
        System.out.println("英雄:"+"波比");
        System.out.println("经验:"+exp  +"（5经验升级一次）");
        System.out.println("等级"+level);
        System.out.println("攻击力:"+gjl);
    }
    public void HP(){
        System.out.println("怪物血量："+hp);
    }
    public void GJL(){
        gjcs=hp/gjl;
        System.out.println(gjcs);
    }

    public static void main(String[] args) {
        hp=gwlevel*1000;
        LOL lol=new LOL();
        Scanner sc=new Scanner(System.in);

        while (true){
            System.out.println("1.攻击怪物 2.英雄信息");
            if (exp%5==0){
                level=level+1;
            }
            int num=sc.nextInt();
            switch(num)
            {
                case 1:
                    System.out.println("攻击成功");
                    hp=hp-250;
                    System.out.println("怪物当前血量："+hp);
                    if(hp==0){
                        System.out.println("英雄击杀了怪物，获得经验1");
                        exp=exp+1;
                        String[] str=new String[0];
                        main(str);
                    }
                    break;
                case 2:
                    lol.YX();
                    String[] str=new String[0];
                    main(str);
                    break;
                default:
                    System.out.println("请输入正确数字");
                    break;

            }
        }

    }
}
